<template>
  <div>
    <div class="conterSxC">
      <div class="conterSxCItemBox" v-for="(v, k) in conterSxCArr" :key="k + '商品信息'">
        <div class="conterSxCItemImgBox">
          <img class="conterSxCItemImg" :src="v.imgUrl" alt="" />
        </div>
        <div class="conterSxCItemTextBox">
          <h2 class="conterSxCItemTextH2">{{ v.title }}</h2>
          <p class="conterSxCItemTextP">{{ v.p }}</p>
          <div class="conterSxCItemTextBtmBox">
            <img class="conterSxCItemTextBtmImg1" :src="v.ydgjImg" alt="" />
            <img class="conterSxCItemTextBtmImg2" :src="v.ydStyleImg" alt="" />
            <span class="conterSxCItemTextBtmText1">{{ v.ydStyle }}</span>
            <span class="conterSxCItemTextBtmText2">{{ v.pro }}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "List",
  data() {
    return {
      conterSxCArr: [
        {
          imgUrl: require("@/assets/zfc-img/商品示例/商品图.png"),
          title: "焕彩萃璨花蕊唇彩4.8g",
          p: "焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g",
          ydgjImg: require("@/assets/zfc-img/商品示例/邮递国家.png"),
          ydStyleImg: require("@/assets/zfc-img/商品示例/邮递方式.png"),
          ydStyle: "海外直邮",
          pro: "￥166.06",
          falg: false,
        },
        {
          imgUrl: require("@/assets/zfc-img/商品示例/商品图.png"),
          title: "焕彩萃璨花蕊唇彩4.8g",
          p: "焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g",
          ydgjImg: require("@/assets/zfc-img/商品示例/邮递国家.png"),
          ydStyleImg: require("@/assets/zfc-img/商品示例/邮递方式.png"),
          ydStyle: "海外直邮",
          pro: "￥166.06",
          falg: false,
        },
        {
          imgUrl: require("@/assets/zfc-img/商品示例/商品图.png"),
          title: "焕彩萃璨花蕊唇彩4.8g",
          p: "焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g",
          ydgjImg: require("@/assets/zfc-img/商品示例/邮递国家.png"),
          ydStyleImg: require("@/assets/zfc-img/商品示例/邮递方式.png"),
          ydStyle: "海外直邮",
          pro: "￥166.06",
          falg: false,
        },
        {
          imgUrl: require("@/assets/zfc-img/商品示例/商品图.png"),
          title: "焕彩萃璨花蕊唇彩4.8g",
          p: "焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g焕彩萃璨花蕊唇彩4.8g",
          ydgjImg: require("@/assets/zfc-img/商品示例/邮递国家.png"),
          ydStyleImg: require("@/assets/zfc-img/商品示例/邮递方式.png"),
          ydStyle: "海外直邮",
          pro: "￥166.06",
          falg: false,
        },
      ],
    };
  },
};
</script>

<style scoped>
* {
  overflow: hidden;
}
.conterSxC {
  width: 7.2rem;
  background-color: #f2f2f2;
  display: flex;
  flex-direction: column;
}
/* 商品详情 */
.conterSxCItemBox {
  width: calc(100% - 0.6rem);
  height: 2rem;
  background-color: #ffffff;
  border-top: 0.01rem solid #cccccc;
  border-bottom: 0.01rem solid #cccccc;
  padding: 0 0.2rem;
  margin-bottom: 0.2rem;
  font-size: 0;
  display: flex;
}

.conterSxCItemBox:nth-last-of-type(1) {
  margin-bottom: 0;
}
.conterSxCItemImgBox {
  width: 1.8rem;
  height: 100%;
  margin-right: 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.conterSxCItemImg {
  margin: 0 auto;
}
.conterSxCItemTextBox {
  width: calc(100% - 2rem);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.conterSxCItemTextH2 {
  height: 0.28rem;
  line-height: 0.28rem;
  font-size: 0.3rem;
  color: #333333;
  padding-top: 0.28rem;
  padding-bottom: 0.15rem;
}
.conterSxCItemTextP {
  height: calc(0.36rem * 2);
  line-height: 0.36rem;
  font-size: 0.24rem;
  color: #4c4c4c;
}
.conterSxCItemTextBtmBox {
  flex-grow: 1;
  position: relative;
}
.conterSxCItemTextBtmImg1 {
  position: absolute;
  top: 0.16rem;
  left: 0.2rem;
}
.conterSxCItemTextBtmImg2 {
  position: absolute;
  top: 0.06rem;
  left: 0.69rem;
}
.conterSxCItemTextBtmText1 {
  height: 0.2rem;
  line-height: 0.2rem;
  font-size: 0.2rem;
  color: #666666;
  position: absolute;
  top: 0.13rem;
  left: 1.11rem;
}
.conterSxCItemTextBtmText2 {
  height: 0.3rem;
  line-height: 0.3rem;
  font-size: 0.3rem;
  color: #e53e42;
  position: absolute;
  top: 0.11rem;
  right: 0;
}
</style>
